<h1>Ordonnez ces livres</h1>

<ol id="book_list">
  <% for book in @books %>
  <li id="book_id_<%= book.id %>"><%= book.title %></li>
  <% end -%>
</ol>

<p id="book_list_notification"></p>

<%= sortable_element 'book_list', 
      :update => 'book_list_notification',  
      :complete => visual_effect(:highlight, 'book_list'), 
      :url => { :action => "orderBooks" } %>